
.statistics-container {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.statistics-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--background-modifier-border);
}

.statistics-title {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--text-normal);
}

.statistics-header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.profile-container {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px;
    border-radius: 20px;
    background-color: var(--background-secondary);
    transition: background-color 0.2s ease;
}

.profile-container:hover {
    background-color: var(--background-modifier-hover);
}

.profile-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-nickname {
    padding: 0 10px;
    color: var(--text-normal);
    font-size: 14px;
    font-weight: 500;
}

.export-button {
    background-color: var(--interactive-accent);
    color: var(--text-on-accent);
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background-color 0.2s ease;
}

.export-button:hover {
    background-color: var(--interactive-accent-hover);
}

.export-button::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    background-color: currentColor;
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><polyline points="7 10 12 15 17 10"/><line x1="12" y1="15" x2="12" y2="3"/></svg>');
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
}

.stats-cards {
    display: flex;
    flex-direction: row;
    gap: 15px;
    margin-bottom: 10px;
    min-height: 120px;
    overflow-x: auto;
    overflow-y: hidden;
    justify-content: center;
    padding: 0 15px;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

.stats-card {
    background-color: var(--background-secondary);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: transform 0.2s ease;
    min-width: 0; /* 防止卡片溢出 */
}

.stats-card-title {
    font-size: 0.85em;
    color: var(--text-muted);
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stats-card-value {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--text-normal);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chart-container {
    background-color: var(--background-secondary);
    border-radius: 10px;
    padding: 20px;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.chart-title {
    font-size: 1.2em;
    font-weight: bold;
    color: var(--text-normal);
}

.time-range-selector {
    display: flex;
    gap: 10px;
}

.time-range-button {
    background-color: var(--background-modifier-hover);
    border: none;
    border-radius: 5px;
    padding: 5px 15px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.time-range-button:hover {
    background-color: var(--background-modifier-active);
    color: var(--text-normal);
}

.time-range-button.active {
    background-color: var(--interactive-accent);
    color: var(--text-on-accent);
}

.canvas-container {
    background-color: var(--background-primary);
    border-radius: 8px;
    padding: 20px;
}

/* Mobile Responsive Design */
@media screen and (max-width: 1200px) {
    .stats-row {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 480px) {
    .stats-row {
        grid-template-columns: 1fr;
    }
}
